TVView
open class TVView : RelativeLayout, RevelControl, SurfaceHolder.Callback, MediaPlayer.OnErrorListener, MediaPlayer.OnPreparedListener, MediaPlayer.OnInfoListener, MediaPlayer.OnCompletionListener
A custom RelativeLayout that encapsulates video playback functionality, primarily for displaying TV streams or video content using an underlying ExoPlayerVideoView2.
This view manages the lifecycle of the video player, handles initialization from a Module which specifies video source (URL), volume, VAST ad tags, and scaling options. It implements various MediaPlayer listeners to react to playback events like preparation, completion, and errors.
It also implements RevelControl for integration into the RevelDigital player system, allowing it to be managed as a content module. Error handling includes a retry mechanism for playback issues.
See also
Constructors
Functions
Link copied to clipboard
Gets an iterator over the configuration s for this control.
Link copied to clipboard
Gets the associated with this control, if any.
Link copied to clipboard
Gets the type of the underlying module or content associated with this control.
Link copied to clipboard
Initializes the control with its associated module context.
Link copied to clipboard
Checks if this control is configured to start its operation automatically after #initialize(Module) initialization.
Link copied to clipboard
Called when the end of a media source is reached during playback.
Link copied to clipboard
Called when the media source is ready for playback.
Link copied to clipboard
Sets whether this control should start its operation automatically after #initialize(Module) initialization.
Link copied to clipboard
Called when the surface changes (e.g., size, format).
Link copied to clipboard
Called when the surface is first created.
Link copied to clipboard
Called when the surface is destroyed.